package com.ldl.handle.demo.service.impl;

import com.ldl.handle.demo.service.DemoQuoteService;
import com.ldl.handle.demo.service.DemoService;
import com.ldl.handle.spring.framework.annotation.LdlAutowired;
import com.ldl.handle.spring.framework.annotation.LdlService;

/**
 * @author ldl  想过夏天的雪人
 * @Date 2022-10-12 11:40
 */
@LdlService
public class DemoServiceImpl implements DemoService {
    @LdlAutowired
    private DemoQuoteService demoQuoteService;

    @Override
    public String hello(String name) {
        demoQuoteService.query(name);
        return "hello，word ！！" + name;
    }

    @Override
    public String add(String name, String sex, String id) {
        return String.format("新增记录 id:%s \n 姓名：%s \n 性别：%s ", id, name, sex);
    }
}
